//
//  RootViewController.h
//  SplitForce
//
//  Created by Dave Carroll on 6/20/10.
//  Copyright Salesforce.com 2010. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "zkSforce.h"
#import "RootViewController.h"

@class DetailViewController; 

@interface RootViewController : UITableViewController <UIActionSheetDelegate, ForceClientDelegate> {
    DetailViewController *detailViewController;
	ZKSforceClient *client;
	
	KeychainItemWrapper *usernameItem;
	KeychainItemWrapper *passwordItem;

	NSMutableArray *dataRows;
	NSIndexPath *deleteIndexPath;
}

@property (nonatomic, retain) IBOutlet DetailViewController *detailViewController;
@property (nonatomic, retain) ZKSforceClient *client;
@property (nonatomic, retain) KeychainItemWrapper *usernameItem;
@property (nonatomic, retain) KeychainItemWrapper *passwordItem;
@property (nonatomic, retain) NSMutableArray *dataRows;
@property (nonatomic, retain) NSIndexPath *deleteIndexPath;

-(void)			loginSucceeded:(ZKLoginResult *)results;
-(IBAction)	resetCreds:(id)sender;
-(void)			alertOKCancelAction:(NSString *)title withMessage:(NSString *)message;
-(void)			alertOKAction:(NSString *)title withMessage:(NSString *)message;

//- (NSString *) getFieldList :(ZKDescribeSObject *) describeInfo ;
@end
